<style>
    table {
        font-family: Arial;
        font-size: 13px;
        vertical-align: top;
    }
    th {
        font-size: 13px;
        text-align: center;
    }
    .border td, .border th {
        border-left: thin solid black;
    }
    .border th {
        border-top: thin solid black;
        border-bottom: thin solid black;
    }
    .last-border td {
        border-top: thin solid black;
        border-bottom: thin solid black;
    }
    .last-rem td {
        border-bottom: thin solid black;
    }
    .title {
        font-weight: bold;
        font-size: 20px;
        text-align: center;
    }
    td, th {
        padding: 5px;
    }
</style>
<page>
    <table cellspacing="0" cellpadding="10px" width="100%">
        <tr>
            <td colspan="4">
                <img src="http://epac.com.vn/public/images/logo.png" style="height:90px; float:left; margin-right: 10px"/>            
                EPAC Co., Ltd <br/>
                19<sup>th</sup> Floor, Indochina Park Tower <br/>
                4 Nguyen Dinh Chieu Street, Dist 1 <br/>
                Hochiminh City, Vietnam <br/>
                Tel: +(84-8) 6288 3795 | fax: +(84-8) 2220 2325 <br/>
                Email: ops@epac.com.vn | www.epac.com.vn
            </td>
        </tr>
        <tr>
            <td colspan="4"><br></td>
        </tr>
        <tr>
            <td colspan="4" class="title">DISBURSEMENT</td>
        </tr>
        <tr>
            <td colspan="4"><br></td>
        </tr>
        <tr>
            <td>Bill to:</td>
            <td>
                <?php echo $this->customer_name ?>
            </td>
            <td style="width: 15%">Invoice date:</td>
            <td style="width: 30%">
                <?php echo date('d/m/Y', $this->gi->updated_time) ?>
            </td>
        </tr>
        <tr>
            <td>Attn: </td>
            <td>
                <?php echo $this->gi->attn ?>
            </td>
            <td>Invoice number:</td>
            <td><?php echo $this->invoice_number ?></td>            
        </tr>    
        <tr>
            <td></td>
            <td></td>
            <td>Vessel:</td>
            <td><?php echo $this->gi->vessel ?></td>            
        </tr>
        <tr>
            <td></td>
            <td></td> 
            <td>Voyage no.:</td>
            <td>
                <?php echo $this->gi->voyage_no ?>
            </td>            
        </tr>
        <tr>
            <td></td>
            <td></td>      
            <td>Port of call:</td>
            <td>
                <?php echo $this->port_of_call_name ?>
            </td>
        </tr>
        <tr>
            <td><br></td>
        </tr>
        <tr class="border">
            <th>Service No.</th>
            <th>Description</th>
            <th>Amount (USD)</th>
            <th style="border-right: thin solid black">Remarks</th>
        </tr>
        <?php $index = 1 ?>
        <?php $total = 0 ?>
        <?php foreach ($this->services as $service): ?>
            <tr class="border">
                <td style="text-align: center">
                    <?php echo $index++ ?>
                </td>
                <td>
                    <?php echo $service->service_name ?>
                </td>
                <td style="text-align: right">
                    <?php echo Core_Util::displayCurrrency($service->amount) ?>
                </td>
                <td style="text-align: left;width:20%;border-right: thin solid black">
                    <?php echo $service->remarks ?>
                </td>
            </tr>
            <?php $total += $service->amount ?>
        <?php endforeach; ?>
        <tr class="border last-border">
            <td style="text-align: center">
            </td>
            <td style="font-weight: bold;text-align: center">
                Total
            </td>
            <td style="text-align: right">
                <?php echo Core_Util::displayCurrrency($total) ?>
            </td>
            <td style="text-align: right;font-weight: bold;border-right: thin solid black">
            </td>
        </tr>
        <tr>
            <td colspan="4">
                <div style="margin-top: 10px">
                    Say: US dollars <?php echo Core_Util::convert_number_to_words($total) ?>
                </div>
            </td>
        </tr>
        <tr><td colspan="4"><br/></td></tr>
        <tr><td colspan="4"><br/></td></tr>
        <tr>
            <td colspan="4">
                <p>
                    Please be advised our bank detail is asf:<br/><br/>
                    Beneficiary name: EPAC Co.,Ltd <br/>
                    Beneficiary USD bank account: 156746989 <br/>
                    ASIA COMMERCIAL BANK - ACB <br/>
                    SWIFT CODE: ASCBVNVX <br/>
                </p>
            </td>
        </tr>
        <tr><td colspan="4"><br/></td></tr>
        <tr>
            <td>Prepared by: </td>
            <td></td>
            <td colspan="2">
                Received / approved by Master:
            </td>
        </tr>
        <tr><td colspan="4"><br/></td></tr>
        <tr>
            <td colspan="4">
                <img src="http://www.epac.com.vn/public/images/Stamp.jpg" style="width: 200px"/>
            </td>
        </tr>
        <tr><td colspan="4"><br/></td></tr>
        <tr>
            <td colspan="4">
                As Agents only
            </td>
        </tr>
    </table>
</page>